package com.xiangban.dao;

import com.xiangban.model.Shop;
import com.xiangban.model.ShopLogin;
import com.xiangban.model.dto.PermissionMenuDto;
import com.xiangban.model.dto.ShopLoginDto;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author Mr. MaYaYun
 * @Data 2021/11/16 17:16
 */
@Repository
public interface ShopMapper {

    void updateShopPassword(ShopLogin shopLogin);

    void updateShopInformation(Shop shop);

    Shop getShopInformation(Shop shop);

    List<PermissionMenuDto> getMenuAndPermission(PermissionMenuDto permissionMenuDto);

    ShopLoginDto getShopInfo(ShopLogin shopLogin);

    ShopLogin shopInfoByUserNameAndPhone(ShopLogin shopLogin);

    ArrayList<String> getPermission(List<PermissionMenuDto> permissionMenuDto);
}
